home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / ConnectionTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-31  |  3.4 KB  |  163 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        ConnectionTools.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __CONNECTIONTOOLS__
  13. #define __CONNECTIONTOOLS__
  14.  
  15. #ifndef __DIALOGS__
  16. #include <Dialogs.h>
  17. /*    #include <Windows.h>                                        */
  18. /*        #include <Quickdraw.h>                                    */
  19. /*            #include <Types.h>                                    */
  20. /*                #include <ConditionalMacros.h>                    */
  21. /*                #include <MixedMode.h>                            */
  22. /*                    #include <Traps.h>                            */
  23. /*            #include <QuickdrawText.h>                            */
  24. /*                #include <IntlResources.h>                        */
  25. /*        #include <Events.h>                                        */
  26. /*            #include <OSUtils.h>                                */
  27. /*        #include <Controls.h>                                    */
  28. /*            #include <Menus.h>                                    */
  29. /*    #include <TextEdit.h>                                        */
  30. #endif
  31.  
  32. #ifndef __CONNECTIONS__
  33. #include <Connections.h>
  34. /*    #include <CTBUtilities.h>                                    */
  35. /*        #include <Memory.h>                                        */
  36. /*        #include <StandardFile.h>                                */
  37. /*            #include <Files.h>                                    */
  38. /*                #include <SegLoad.h>                            */
  39. /*        #include <AppleTalk.h>                                    */
  40. #endif
  41.  
  42. enum  {
  43. /* messages for DefProc */
  44.     cmInitMsg                    = 0,
  45.     cmDisposeMsg                = 1,
  46.     cmSuspendMsg                = 2,
  47.     cmResumeMsg                    = 3,
  48.     cmMenuMsg                    = 4,
  49.     cmEventMsg                    = 5,
  50.     cmActivateMsg                = 6,
  51.     cmDeactivateMsg                = 7,
  52.     cmIdleMsg                    = 50,
  53.     cmResetMsg                    = 51,
  54.     cmAbortMsg                    = 52,
  55.     cmReadMsg                    = 100,
  56.     cmWriteMsg                    = 101,
  57.     cmStatusMsg                    = 102,
  58.     cmListenMsg                    = 103,
  59.     cmAcceptMsg                    = 104,
  60.     cmCloseMsg                    = 105,
  61.     cmOpenMsg                    = 106,
  62.     cmBreakMsg                    = 107,
  63.     cmIOKillMsg                    = 108
  64. };
  65.  
  66. enum  {
  67.     cmEnvironsMsg                = 109,
  68. /* new connection tool messages for ctb 1.1 */
  69.     cmNewIOPBMsg                = 110,
  70.     cmDisposeIOPBMsg            = 111,
  71.     cmGetErrorStringMsg            = 112,
  72.     cmPBReadMsg                    = 113,
  73.     cmPBWriteMsg                = 114,
  74.     cmPBIOKillMsg                = 115,
  75. /*    messages for validate DefProc    */
  76.     cmValidateMsg                = 0,
  77.     cmDefaultMsg                = 1,
  78. /*    messages for Setup DefProc    */
  79.     cmSpreflightMsg                = 0,
  80.     cmSsetupMsg                    = 1,
  81.     cmSitemMsg                    = 2,
  82.     cmSfilterMsg                = 3,
  83.     cmScleanupMsg                = 4,
  84. /*    messages for scripting defProc    */
  85.     cmMgetMsg                    = 0,
  86.     cmMsetMsg                    = 1,
  87. /*    messages for localization defProc    */
  88.     cmL2English                    = 0,
  89.     cmL2Intl                    = 1
  90. };
  91.  
  92.  
  93. /*    private data constants */
  94.  
  95. #define cdefType 'cdef'
  96.  
  97. #define cvalType 'cval'
  98.  
  99. #define csetType 'cset'
  100.  
  101. #define clocType 'cloc'
  102.  
  103. #define cscrType 'cscr'
  104.  
  105. #define cbndType 'cbnd'
  106.  
  107. #define cverType 'vers'
  108.  
  109. #if defined(powerc) || defined (__powerc)
  110. #pragma options align=mac68k
  111. #endif
  112. struct CMDataBuffer {
  113.     Ptr                            thePtr;
  114.     long                        count;
  115.     CMChannel                    channel;
  116.     CMFlags                        flags;
  117. };
  118. #if defined(powerc) || defined(__powerc)
  119. #pragma options align=reset
  120. #endif
  121.  
  122. typedef struct CMDataBuffer CMDataBuffer;
  123.  
  124. typedef CMDataBuffer *CMDataBufferPtr;
  125.  
  126. #if defined(powerc) || defined (__powerc)
  127. #pragma options align=mac68k
  128. #endif
  129. struct CMCompletorRecord {
  130.     Boolean                        async;
  131.     ConnectionCompletionUPP        completionRoutine;
  132. };
  133. #if defined(powerc) || defined(__powerc)
  134. #pragma options align=reset
  135. #endif
  136.  
  137. typedef struct CMCompletorRecord CMCompletorRecord;
  138.  
  139. typedef CMCompletorRecord *CMCompletorPtr;
  140.  
  141.  
  142. /*    Private Data Structure    */
  143.  
  144. #if defined(powerc) || defined (__powerc)
  145. #pragma options align=mac68k
  146. #endif
  147. struct CMSetupStruct {
  148.     DialogPtr                    theDialog;
  149.     short                        count;
  150.     Ptr                            theConfig;
  151.     short                        procID;                            /* procID of the tool    */
  152. };
  153. #if defined(powerc) || defined(__powerc)
  154. #pragma options align=reset
  155. #endif
  156.  
  157. typedef struct CMSetupStruct CMSetupStruct;
  158.  
  159. typedef CMSetupStruct *CMSetupPtr;
  160.  
  161. #endif
  162.  
  163.